package com.kaishengit.dao;

import java.util.List;

import com.kaishengit.dao.core.BaseDao;
import com.kaishengit.pojo.Contacts;
import com.kaishengit.pojo.Tel;

public class TelDao extends BaseDao<Tel, String> {
    public void deleteByContacts(Contacts contacts) {
        String telHql = "from Tel where contacts = ?";
        List<Tel> telList = find(telHql, contacts);
        for (Tel tel : telList) {
            getSession().delete(tel);
        }
    }
}
